/*------Open Source Open16 Project-------------
*brief This is the library for BSP LED support,
users can use these function to operate LEDs.
-----------------------------------------------
*author: Kobayshi_Hikari
*progress: done
*version: 1.0
--------Open Source Open16 Project-------------
*/
#ifndef LED_SUPPORT_H
#define LED_SUPPORT_H

#include <system.h>

#define LED0 0
#define LED1 1
#define LED2 2
#define LED3 3
#define LED4 4
#define LED5 5
#define LED6 6
#define LED7 7

//Set one LED on or off, using macro
#define bLED_ON( ledx )     (set_bit(portb, ledx))
#define bLED_OFF( ledx )      (clear_bit(portb, ledx))

//Set ALL LED on or off
void LEDs_OFF(void);
void LEDs_ON(void);
void LED_init(void);

#endif